class Contact < ActiveRecord::Base
  
  validates_presence_of :contact_email
 # validates_length_of   :birth_date, :minimum => 4
  
  def self.upcoming_events
    find(:all, :conditions => "birth_date > CURRENT_TIMESTAMP()", :order => "birth_date")
  end
  
  def self.current_contacts
    find(:all, :order => "birth_date")
  end
  
  def name
    contact_email
  end
  
end
